/*
 * @Author: wanli
 * @Date: 2021-02-16 21:38:09
 * @LastEditTime: 2021-02-16 21:47:13
 * @LastEditors: wanli
 * @Description:
 * @FilePath: /webapp/models/category.go
 */
package models

/*
CREATE TABLE `category` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `category_id` int(10) unsigned NOT NULL,
  `category_name` varchar(128) COLLATE utf8mb4_general_ci NOT NULL,
  `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idx_category_id` (`category_id`),
  UNIQUE KEY `idx_category_name` (`category_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
*/
type Category struct {
	CategoryID   int32  `json:"id" db:"category_id"`
	CategoryName string `json:"name" db:"category_name"`
}
